<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Pepr3D: pepr3d::SidePane Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pepr3d_icon.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Pepr3D
   &#160;<span id="projectnumber">v1.0</span>
   </div>
   <div id="projectbrief">Pepr3D is a 3D graphics editor designed for FDM printing</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpepr3d_1_1_side_pane.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classpepr3d_1_1_side_pane-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">pepr3d::SidePane Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Right side of the user interface that displays options of the currently selected tool.  
 <a href="classpepr3d_1_1_side_pane.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_side_pane_8h_source.html">SidePane.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_side_pane_1_1_category.html">Category</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A category of a <a class="el" href="classpepr3d_1_1_side_pane.html" title="Right side of the user interface that displays options of the currently selected tool.">SidePane</a> that can be opened and closed by a user.  <a href="classpepr3d_1_1_side_pane_1_1_category.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac34e40627f74677c9acd8048fb6527e7"><td class="memItemLeft" align="right" valign="top"><a id="ac34e40627f74677c9acd8048fb6527e7"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SidePane</b> (<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;app)</td></tr>
<tr class="separator:ac34e40627f74677c9acd8048fb6527e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d9965d55d1b631ec97a98698bbcd67b"><td class="memItemLeft" align="right" valign="top"><a id="a0d9965d55d1b631ec97a98698bbcd67b"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_side_pane.html#a0d9965d55d1b631ec97a98698bbcd67b">getWidth</a> () const</td></tr>
<tr class="memdesc:a0d9965d55d1b631ec97a98698bbcd67b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the width. <br /></td></tr>
<tr class="separator:a0d9965d55d1b631ec97a98698bbcd67b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4418b3cd4e7c4e584d91f826d1e944b9"><td class="memItemLeft" align="right" valign="top"><a id="a4418b3cd4e7c4e584d91f826d1e944b9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_side_pane.html#a4418b3cd4e7c4e584d91f826d1e944b9">setWidth</a> (float width)</td></tr>
<tr class="memdesc:a4418b3cd4e7c4e584d91f826d1e944b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the width. <br /></td></tr>
<tr class="separator:a4418b3cd4e7c4e584d91f826d1e944b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ff5531d18ef9a1ad2149e59661c8d77"><td class="memItemLeft" align="right" valign="top"><a id="a1ff5531d18ef9a1ad2149e59661c8d77"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_side_pane.html#a1ff5531d18ef9a1ad2149e59661c8d77">draw</a> ()</td></tr>
<tr class="memdesc:a1ff5531d18ef9a1ad2149e59661c8d77"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws the pane using ImGui. <br /></td></tr>
<tr class="separator:a1ff5531d18ef9a1ad2149e59661c8d77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41774f95d968169688441c34a7b0e21b"><td class="memItemLeft" align="right" valign="top"><a id="a41774f95d968169688441c34a7b0e21b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_side_pane.html#a41774f95d968169688441c34a7b0e21b">resize</a> ()</td></tr>
<tr class="memdesc:a41774f95d968169688441c34a7b0e21b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called when the <a class="el" href="classpepr3d_1_1_side_pane.html" title="Right side of the user interface that displays options of the currently selected tool.">SidePane</a> should recalculate its size. <br /></td></tr>
<tr class="separator:a41774f95d968169688441c34a7b0e21b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad52b2636cb54b25ed796ad8bae54a535"><td class="memItemLeft" align="right" valign="top"><a id="ad52b2636cb54b25ed796ad8bae54a535"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_side_pane.html#ad52b2636cb54b25ed796ad8bae54a535">drawText</a> (std::string text)</td></tr>
<tr class="memdesc:ad52b2636cb54b25ed796ad8bae54a535"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a (multi-line) text label. <br /></td></tr>
<tr class="separator:ad52b2636cb54b25ed796ad8bae54a535"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28107c4c4448600ef6f07b5c22928b22"><td class="memItemLeft" align="right" valign="top"><a id="a28107c4c4448600ef6f07b5c22928b22"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_side_pane.html#a28107c4c4448600ef6f07b5c22928b22">drawButton</a> (std::string label)</td></tr>
<tr class="memdesc:a28107c4c4448600ef6f07b5c22928b22"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a button with a maximum available width. <br /></td></tr>
<tr class="separator:a28107c4c4448600ef6f07b5c22928b22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fcb108b3358ec5b16e08359440d2e83"><td class="memItemLeft" align="right" valign="top"><a id="a6fcb108b3358ec5b16e08359440d2e83"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_side_pane.html#a6fcb108b3358ec5b16e08359440d2e83">drawColoredButton</a> (std::string label, const ci::ColorA color, const float borderThickness=3.0f)</td></tr>
<tr class="memdesc:a6fcb108b3358ec5b16e08359440d2e83"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a button with a colored highlight. <br /></td></tr>
<tr class="separator:a6fcb108b3358ec5b16e08359440d2e83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9c2d073fb25be1145899accd17813fa"><td class="memItemLeft" align="right" valign="top"><a id="ac9c2d073fb25be1145899accd17813fa"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_side_pane.html#ac9c2d073fb25be1145899accd17813fa">drawSeparator</a> ()</td></tr>
<tr class="memdesc:ac9c2d073fb25be1145899accd17813fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a horizontal separator. <br /></td></tr>
<tr class="separator:ac9c2d073fb25be1145899accd17813fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33641b0bade39edf124bc6c23a6271a0"><td class="memItemLeft" align="right" valign="top"><a id="a33641b0bade39edf124bc6c23a6271a0"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_side_pane.html#a33641b0bade39edf124bc6c23a6271a0">drawColorPalette</a> (const std::string &amp;label=&quot;Color Palette&quot;, bool isEditable=false)</td></tr>
<tr class="memdesc:a33641b0bade39edf124bc6c23a6271a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a color palette of the current <a class="el" href="classpepr3d_1_1_geometry.html" title="The whole geometry of a model that the user is painting.">Geometry</a> and its <a class="el" href="classpepr3d_1_1_color_manager.html" title="Represents a color palette, i.e., all colors and a selected active color.">ColorManager</a>. If isEditable is true, a full editable user interface will be drawn. <br /></td></tr>
<tr class="separator:a33641b0bade39edf124bc6c23a6271a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa585367929e09354f49e0740571f475b"><td class="memTemplParams" colspan="2"><a id="aa585367929e09354f49e0740571f475b"></a>
template&lt;typename Callback &gt; </td></tr>
<tr class="memitem:aa585367929e09354f49e0740571f475b"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_side_pane.html#aa585367929e09354f49e0740571f475b">drawCheckbox</a> (std::string label, bool isChecked, Callback onChanged)</td></tr>
<tr class="memdesc:aa585367929e09354f49e0740571f475b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a checkbox with a callback called when the value is changed. <br /></td></tr>
<tr class="separator:aa585367929e09354f49e0740571f475b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65b9063ac82c6249eef2c1a7586a0cfb"><td class="memItemLeft" align="right" valign="top"><a id="a65b9063ac82c6249eef2c1a7586a0cfb"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_side_pane.html#a65b9063ac82c6249eef2c1a7586a0cfb">drawCheckbox</a> (std::string label, bool &amp;isChecked)</td></tr>
<tr class="memdesc:a65b9063ac82c6249eef2c1a7586a0cfb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a checkbox with a read-write reference to the current value. <br /></td></tr>
<tr class="separator:a65b9063ac82c6249eef2c1a7586a0cfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae31dbf3dc9f11c3a4a2721c59ca043df"><td class="memItemLeft" align="right" valign="top"><a id="ae31dbf3dc9f11c3a4a2721c59ca043df"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_side_pane.html#ae31dbf3dc9f11c3a4a2721c59ca043df">drawIntDragger</a> (std::string label, int &amp;value, float dragSpeed, int minValue, int maxValue, std::string displayFormat, float width)</td></tr>
<tr class="memdesc:ae31dbf3dc9f11c3a4a2721c59ca043df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an ImGui dragger (slider) for an integer value. <br /></td></tr>
<tr class="separator:ae31dbf3dc9f11c3a4a2721c59ca043df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a284ec9b8a323a0b4bf01fddb8551d4b2"><td class="memItemLeft" align="right" valign="top"><a id="a284ec9b8a323a0b4bf01fddb8551d4b2"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_side_pane.html#a284ec9b8a323a0b4bf01fddb8551d4b2">drawVec3Dragger</a> (std::string label, glm::vec3 &amp;value, float dragSpeed, float minValue, float maxValue, std::string displayFormat, float width)</td></tr>
<tr class="memdesc:a284ec9b8a323a0b4bf01fddb8551d4b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an ImGui dragger (slider) for an glm::vec3 value. <br /></td></tr>
<tr class="separator:a284ec9b8a323a0b4bf01fddb8551d4b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67b9ac3cbdcbae622df47cf7fa7fe0d0"><td class="memItemLeft" align="right" valign="top"><a id="a67b9ac3cbdcbae622df47cf7fa7fe0d0"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_side_pane.html#a67b9ac3cbdcbae622df47cf7fa7fe0d0">drawFloatDragger</a> (std::string label, float &amp;value, float dragSpeed, float minValue, float maxValue, std::string displayFormat, float width)</td></tr>
<tr class="memdesc:a67b9ac3cbdcbae622df47cf7fa7fe0d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an ImGui dragger (slider) for an float value. <br /></td></tr>
<tr class="separator:a67b9ac3cbdcbae622df47cf7fa7fe0d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2aec2dd5fb2b89689af2478547c58c5"><td class="memItemLeft" align="right" valign="top"><a id="ad2aec2dd5fb2b89689af2478547c58c5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_side_pane.html#ad2aec2dd5fb2b89689af2478547c58c5">drawTooltipOnHover</a> (const std::string &amp;label, const std::string &amp;shortcut=&quot;&quot;, const std::string &amp;description=&quot;&quot;, const std::string &amp;disabled=&quot;&quot;)</td></tr>
<tr class="memdesc:ad2aec2dd5fb2b89689af2478547c58c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a tooltip if the previous ImGui element is hovered. The tooltip is drawn on the left of the <a class="el" href="classpepr3d_1_1_side_pane.html" title="Right side of the user interface that displays options of the currently selected tool.">SidePane</a>. <br /></td></tr>
<tr class="separator:ad2aec2dd5fb2b89689af2478547c58c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a661999aa5735d68c9ac36fa07722ed5b"><td class="memItemLeft" align="right" valign="top"><a id="a661999aa5735d68c9ac36fa07722ed5b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_side_pane.html#a661999aa5735d68c9ac36fa07722ed5b">drawColorPaletteAddRemoveButtons</a> (<a class="el" href="classpepr3d_1_1_color_manager.html">ColorManager</a> &amp;colorManager, <a class="el" href="classpepr3d_1_1_command_manager.html">CommandManager</a>&lt; <a class="el" href="classpepr3d_1_1_geometry.html">Geometry</a> &gt; &amp;commandManager)</td></tr>
<tr class="memdesc:a661999aa5735d68c9ac36fa07722ed5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws add &amp; remove buttons of an editable color palette. <br /></td></tr>
<tr class="separator:a661999aa5735d68c9ac36fa07722ed5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38039d44d10317e493730141b058d193"><td class="memItemLeft" align="right" valign="top"><a id="a38039d44d10317e493730141b058d193"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_side_pane.html#a38039d44d10317e493730141b058d193">drawColorPaletteColorBoxes</a> (<a class="el" href="classpepr3d_1_1_color_manager.html">ColorManager</a> &amp;colorManager, <a class="el" href="classpepr3d_1_1_command_manager.html">CommandManager</a>&lt; <a class="el" href="classpepr3d_1_1_geometry.html">Geometry</a> &gt; &amp;commandManager, bool isEditable)</td></tr>
<tr class="memdesc:a38039d44d10317e493730141b058d193"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws the color boxes of a color palette. <br /></td></tr>
<tr class="separator:a38039d44d10317e493730141b058d193"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:ab3342d437643b373b886c13fadbe2708"><td class="memItemLeft" align="right" valign="top"><a id="ab3342d437643b373b886c13fadbe2708"></a>
<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>mApplication</b></td></tr>
<tr class="separator:ab3342d437643b373b886c13fadbe2708"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a943018559d65596c1c5822ca50495e8d"><td class="memItemLeft" align="right" valign="top"><a id="a943018559d65596c1c5822ca50495e8d"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>mWidth</b> = 250.0f</td></tr>
<tr class="separator:a943018559d65596c1c5822ca50495e8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Right side of the user interface that displays options of the currently selected tool. </p>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li>D:/Home/MFF/1-Mgr/projekt/pepr3d/src/ui/<a class="el" href="_side_pane_8h_source.html">SidePane.h</a></li>
<li>D:/Home/MFF/1-Mgr/projekt/pepr3d/src/ui/SidePane.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacepepr3d.html">pepr3d</a></li><li class="navelem"><a class="el" href="classpepr3d_1_1_side_pane.html">SidePane</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
